package result;

import common.WxCommonResult;
import lombok.*;

import java.io.InputStream;

/**
 * 二维码Buffer
 *
 * @author gzkemays
 * @since 2021/12/13 18:44
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class QrcodeBuffer extends WxCommonResult {
  String contentType;
  InputStream buffer;
  boolean generate;

  public QrcodeBuffer(InputStream buffer) {
    this.buffer = buffer;
  }

  public QrcodeBuffer(boolean generate) {
    this.generate = generate;
  }
}
